<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>

        function Person(name,age){
            this.name = name
            this.age = age
            this.sayHi =function(){
                console.log("您好，您真帅！")
            }            
        }

    //实例化
    var per = new Person('xiaoming',20)

    // 原型链 ： 是一种关系，实例对象和原型对象之间的关系,关系是通过原型(__proto__)来联系的

    

    </script>
</body>
</html>